/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ProveedoresSeguridadInstalados;

/**
 *
 * @author kastillo
 */
import java.security.*;
import java.util.*;
public class ProveedoresInstalados {

    public static void main(String args[]) throws Exception {
        Provider[] proveedores = Security.getProviders();
        for (int i = 0; i < proveedores.length; i++) {
            System.out.println();
            System.out.println(proveedores[i].getName()
                    + " Version:" + proveedores[i].getVersion()
                    + " " + proveedores[i].getInfo());
            System.out.println();
            for (Enumeration e = proveedores[i].keys();
                    e.hasMoreElements();) {
                String clave = (String) e.nextElement();
                String valor = (String) proveedores[i].getProperty(clave);
                System.out.println("\t" + clave + "=" + valor);
            }

    }  
    }
}
